Skip to content

feat(csharp/src/Telemetry): re-enable compile-time JSON serializer context for trace activity#4013

Merged
CurtHagenlocher merged 3 commits into
apache:mainfrom
birschick-bq:dev/birschick-bq/compile-time-serialize-activity
Feb 24, 2026
Merged

feat(csharp/src/Telemetry): re-enable compile-time JSON serializer context for trace activity#4013
CurtHagenlocher merged 3 commits into
apache:mainfrom
birschick-bq:dev/birschick-bq/compile-time-serialize-activity

Conversation

@birschick-bq
Copy link
Copy Markdown
Contributor

Re-enables compile time JSON serializer context for the SerializableActivity class.

  • The context include a number of well-known data types
  • The serializer now includes an option to handle unknown types with the default, reflection-based serialization

@birschick-bq
Copy link
Copy Markdown
Contributor Author

@CurtHagenlocher - A small change to re-enable the compile-time serialization code for tracing activity which handles all the value types and Uri.

@CurtHagenlocher CurtHagenlocher merged commit e8642f8 into apache:main Feb 24, 2026
6 checks passed
@birschick-bq birschick-bq deleted the dev/birschick-bq/compile-time-serialize-activity branch February 24, 2026 20:01
CurtHagenlocher pushed a commit that referenced this pull request Mar 23, 2026
…context for trace activity (#4132)

Reverts #4013

For some reason, the following exception is being thrown, despite having
a fallback type resolver

```
Exception thrown: 'System.NotSupportedException' in mscorlib.dll
JsonTypeInfo metadata for type 'Apache.Hive.Service.Rpc.Thrift.TStatusCode' was not provided by TypeInfoResolver of type 'Apache.Arrow.Adbc.Telemetry.Traces.Listeners.FileListener.SerializableActivitySerializerContext'. If using source generation, ensure that all root types passed to the serializer have been annotated with 'JsonSerializableAttribute', along with any types that might be serialized polymorphically. The unsupported member type is located on type 'System.Object'. Path: $.
```
@lidavidm lidavidm added this to the ADBC Libraries 23 milestone Apr 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants